transform text to lowercase and replace space with dash php

102

$str = 'hello have a good day everyone';
echo str_replace(' ', '-', strtolower($str));

Comments

Submit
0 Comments